package com.app.gridview;

import com.zndroid.gridview.IImageBean;

import java.io.File;

public class ImageInfo implements IImageBean {
    private String smallUrl = "";
    private String bigUrl = "";
    private int resId;
    private String filePath = "";
    private String name = "";
    private int coverId;

    public void setCoverId(int coverId) {
        this.coverId = coverId;
    }

    public void setSmallUrl(String smallUrl) {
        this.smallUrl = smallUrl;
    }

    public void setBigUrl(String bigUrl) {
        this.bigUrl = bigUrl;
    }

    public void setResId(int resId) {
        this.resId = resId;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String supplyThumbnailUrl() {
        return smallUrl;
    }

    @Override
    public String supplyBigImageUrl() {
        return bigUrl;
    }

    @Override
    public int supplyResId() {
        return resId;
    }

    @Override
    public File supplyFile() {
        return new File(filePath);
    }

    @Override
    public int supplyCoverResId() {
        return coverId;
    }

    @Override
    public String toString() {
        return "ImageInfo{" +
                "smallUrl='" + smallUrl + '\'' +
                ", bigUrl='" + bigUrl + '\'' +
                ", resId=" + resId +
                ", filePath='" + filePath + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
